package com.rachel.studyapp.mvp.present;

import android.content.Context;

import com.rachel.studyapp.json.funjson.TodayBean;
import com.rachel.studyapp.mvp.ContractUtils;
import com.rachel.studyapp.mvp.base.BasePresent;
import com.rachel.studyapp.mvp.model.FunModel;

/**
 * Created by zhengshaorui on 2017/8/30.
 */

public class FunPresent extends BasePresent<ContractUtils.IFunView> implements ContractUtils.IFunPresent {
    private ContractUtils.IFunView mView;
    private FunModel mModell;

    public FunPresent(ContractUtils.IFunView view, Context context) {
        mView = view;
        mModell = new FunModel(this,context);

    }



    @Override
    public void getJsonDataSuccess(TodayBean rootbean) {
        mView.getJsonDataSuccess(rootbean);
    }


    @Override
    public void onFailure(Object errorObj) {
        mView.onFailure(errorObj);
    }
}
